# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=perl-io-socket-socks
_pkgname=IO-Socket-Socks
pkgver=0.74
pkgrel=9
pkgdesc='Provides a way to create socks client or server both 4 and 5 version.'
url='http://search.cpan.org/~oleg/IO-Socket-Socks-0.62'
depends=('perl')
arch=('any')
license=('GPL')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/O/OL/OLEG/$_pkgname-$pkgver.tar.gz")
sha512sums=('db6154f3c7f532c6c8a04242e0d301bd124154ebbbc9bbcf0812dda5350bebc501a833057533edeb6b634141bfab5c92b4c1714c348226be1c967aa7b4f2ebe5')

build() {
  cd  "$_pkgname-$pkgver"

  perl Makefile.PL INSTALLDIRS=vendor

  make
}

package() {
  cd  "$_pkgname-$pkgver"

  make DESTDIR="$pkgdir" install

  find "$pkgdir" -type f -name 'perllocal.pod' -delete;
  find "$pkgdir" -type f -name '.packlist' -delete;
}

